package com.suyin.ximoon.dao.impl;

import java.util.HashMap;
import java.util.List;

import org.springframework.stereotype.Service;

import com.suyin.ximoon.dao.LyResourcesDao;
import com.suyin.ximoon.model.LyResources;

@Service
public class LyResourcesDaoImpl  extends BaseDaoImpl<LyResources> implements LyResourcesDao {

	@Override
	public List<LyResources> findChildlists(HashMap<String,Object> map) {
		return this.sqlSessionTemplate.selectList(getSqlMapper("findChildlists"), map);
	}

	@Override
	public List<LyResources> findRes(HashMap<String,Object> map) {
		return this.sqlSessionTemplate.selectList(getSqlMapper("findRes"), map);
	}

	@Override
	public void updateSortOrder(List<LyResources> list) {
		  this.sqlSessionTemplate.update(getSqlMapper("updateSortOrder"), list);
	}

	@Override
	public List<LyResources> findUserResourcess(String userId) {
		return this.sqlSessionTemplate.selectList(getSqlMapper("findUserResourcess"), userId);
	}


}
